﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using KPIS.GERP.GIMS.BLL;
using KPIS.GERP.GIMS.IBLL;
using KPIS.GERP.GIMS.MODEL;
using System.Data;
using System.IO;

namespace KPIS.GERP.GIMS.APP.APP_UI.UserControl
{
    public partial class TIP_Bid_File_History : System.Web.UI.UserControl
    {
        IBLLDocument bllPprFile = new DocumentBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack)
            {
                LoadGridPprFile();
                LoadGridPrFile();
            }
        }

        protected void LoadGridPprFile()
        {
            //RadGrid TmpGrid = (RadGrid)RadPanelBar.FindItemByValue("BarH1").FindControl("Grid_Ppr_File");
            //int seq = Convert.ToInt32(Session["PrSeq"].ToString());
            //TmpGrid.DataSource = bllPprFile.GetDocumentHistory(seq);
            //TmpGrid.DataBind();
        }

        protected void Grid_Ppr_File_ItemCommand(object source, GridCommandEventArgs e)
        {
            LoadGridPprFile();
        }

        protected void LoadGridPrFile()
        {
            //RadGrid TmpGrid = (RadGrid)RadPanelBar.FindItemByValue("BarH2").FindControl("Grid_Pr_File");
            //int seq = Convert.ToInt32(Session["PrSeq"].ToString());
            //TmpGrid.DataSource = bllPprFile.GetDocumentHistory(seq);
            //TmpGrid.DataBind();
        }

        protected void Grid_Pr_File_ItemCommand(object source, GridCommandEventArgs e)
        {
            LoadGridPrFile();
        }
    }
}